/**
 * Created by JinMiao
 * 2017/7/7.
 */
fun main(args: Array<String>) {
    println(sum(1,2))

   var a = func {
       1
   }
    println(a)

}


fun sum(a:Int,b:Int):Int=a+b


fun func(funs:()->Int):Int{
    return funs.invoke()
}